<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'myCenter.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/header.css">
		<link rel="stylesheet" type="text/css" href="css/myCenter_post.css">
		<link rel="stylesheet" type="text/css" href="css/myCenter_header.css">
		<script type="text/javascript" src="js/parseIcon.js">
</script>
		<!--[if lt IE 7]> 
	<script type="text/javascript" src="js/ie6png.js"></script>
	<![endif]-->
		<script type="text/javascript" src="js/jquery.js">
</script>
		<style type="text/css">
#contentRight {
	width: 770px;
	float: left;
	margin: 10px 0 0 20px;
	display: inline;
}

#content {
	float: left;
}

#contentRight1 {
	width: 770px;
	float: left;
	text-align: left;
}

#contentRight2 {
	float: left;
	margin: 10px 0 0 0;
	display: inline;
}

#contentRight3 {
	float: left;
	width: 750px;
	margin: 10px 0 0 0;
	display: inline;
}

#contentRight3-1 {
	width: 700px;
	margin: 2px 0 0 0;
	display: inline;
	float: left;
}

#contentRight3-1-1 {
	float: left;
	padding: 2px 0 0 0;
	font-size: 13px;
	color: #666;
	height: 17px !important;
	height: 20px;
}

#contentRight3-1-2 {
	float: left;
	margin: 0px 0 0 50px;
}

#contentRight3-2 {
	width: 700px;
	margin: 20px 0 0 0;
	display: inline;
	float: left;
}

.contentRight3-2-1 {
	width: 700px;
	float: left;
	text-align: left;
}

.contentRight3-2-2 {
	width: 700px;
	float: left;
	text-align: left;
	margin: 10px 0 5px 0;
	display: inline;
}

.contentRight3-2-3 {
	width: 700px;
	float: left;
}

.contentRight3-2-3-1 {
	float: left;
	margin: 0px 0px 0px 5px;
	display: inline;
}

#contentRight3-3 {
	width: 700px;
	margin: 20px 0 0 0;
	display: inline;
	float: left;
}

#contentRight3-3-1 {
	float: left;
	margin: 0px 0 0 100px;
	display: inline;
}
</style>
	</head>

	<body onload="parseIcon()">
		<div id="container">
			<%@ include file="styleJsp/header.jsp"%>
			<%@ include file="styleJsp/myCenter_header.jsp"%>
			<!-- 右部主要内容 -->
			<div id="contentRight">
				<div id="content">
					<form action="pubAndModifyDiaryAction?userId=${param.userId}"
						method="post">
						<input type="hidden" name="diaryId"
							value="<s:property value='diary.diaryId'/>" />
						<div id="contentRight1">
							<input type="text" name="diaryName"
								value="<s:property value='diary.diaryName'/>" size="90"
								style="text-align: left; height: 25px; font-size: 16px;">
						</div>
						<div id="contentRight2">
							<b:editTable height="180" width="750"
								value="${diary.diaryContent}" />
						</div>
						<div id="contentRight3">
							<div id="contentRight3-1">
								<span id="contentRight3-1-1">日志类型<s:property
										value="diaryName" /> </span>
								<span id="contentRight3-1-2"><select name="diaryType">
										<option value="学习天地">
											学习天地
										</option>
										<option value="心得体验">
											心得体验
										</option>
									</select> </span>
							</div>
							<div id="contentRight3-2">
								<span class="contentRight3-2-1"><s:property
										value="rightTotal.rightName" /> </span>
								<s:iterator value="rightTotal.rights">
									<span class="contentRight3-2-2"><s:property
											value="rightName" />
									</span>
									<div class="contentRight3-2-3">
										<s:iterator value="rights">
											<span class="contentRight3-2-3-1"><label>
													<input type="checkbox" name="diaryRightIds"
														value="<s:property value="rightId" />" />
													<s:property value="rightName" />
												</label> </span>
										</s:iterator>
									</div>
								</s:iterator>
							</div>
							<div id="contentRight3-3">
								<span id="contentRight3-3-1"> <input type="image"
										src="images/publish_btn.png"> </span>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
